package com.bjsxt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bjsxt.domain.UserWallet;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @date:2022/1/7 12:00
* @author:yang
*/
public interface UserWalletService extends IService<UserWallet>{

        /**
         * 分页查询提币地址
         * @param page
         * @param userId
         * @return
         */
        Page<UserWallet> findByPage(Page<UserWallet> page, Long userId);

        /**
         * 查询用户某种币的提现地址
         * @param userId
         * @param coinId
         * @return
         */
        List<UserWallet> findUserWallets(Long userId, Long coinId);

        /**
         * 删除用户的提现地址
         * @param addressId
         * @param payPassword
         * @return
         */
        boolean deleteUserWallet(Long addressId, String payPassword);
}
